<?php
/**
 * @copyright Copyright (c) 2021 勾股工作室
 * @license https://opensource.org/licenses/Apache-2.0
 * @link https://www.gougucms.com
 */

namespace app\admin\validate;
use think\Validate;

class UserClassValidate extends Validate
{
    protected $rule = [
    'grade' => 'require',
    'bj_name' => 'require',
    'course_grade' => 'require',
    'course_id' => 'require',
    'bj_code' => 'require',
    'status' => 'require',
];

    protected $message = [
    'grade.require' => '年级不能为空',
    'bj_name.require' => '班级不能为空',
    'course_grade.require' => '年级课程不能为空',
    'course_id.require' => '课程id不能为空',
    'bj_code.require' => '班级编号不能为空',
    'status.require' => '状态不能为空',
];
}